package com.xyz.study.design_mode.f_prototype.mode;

/**
 * 角色：ConcretePrototype
 * @author XYZ
 * @version 1.0.0
 * @since 2021/1/19
 */
public class ProductUnderLine implements Product{
    @Override
    public void use() {
        System.out.println("use under line product");
    }

    @Override
    public Product createClone() {
        Product product = null;
        try {
            product = (Product) clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return product;
    }
}
